package com.dms.modules.merchant.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(description = "店铺信息更新DTO")
public class ShopUpdateDTO {
    
    @NotBlank(message = "店铺名称不能为空")
    @ApiModelProperty("店铺名称")
    private String shopName;
    
    @ApiModelProperty("店铺logo")
    private String shopLogo;
    
    @ApiModelProperty("店铺描述")
    private String shopDescription;
    
    @ApiModelProperty("店铺公告")
    private String notice;
    
    @ApiModelProperty("营业时间")
    private String businessHours;
    
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "联系电话格式不正确")
    @ApiModelProperty("联系电话")
    private String contactPhone;
    
    @Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", message = "邮箱格式不正确")
    @ApiModelProperty("联系邮箱")
    private String contactEmail;
    
    @ApiModelProperty("店铺地址")
    private String address;
    
    @ApiModelProperty("售后政策")
    private String afterSalePolicy;

    @ApiModelProperty("营业执照号")
    private String businessLicense;

    @ApiModelProperty("营业执照图片")
    private String businessLicenseImage;

    @ApiModelProperty("法人姓名")
    private String legalPerson;

    @ApiModelProperty("法人身份证号")
    private String legalPersonIdCard;

    @ApiModelProperty("法人身份证正面")
    private String legalPersonIdCardFront;

    @ApiModelProperty("法人身份证反面")
    private String legalPersonIdCardBack;
} 